package com.Java.train.business.entity.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
public class TrainDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("车次编号")
    private String code;

    @ApiModelProperty("车次类型|枚举[TrainTypeEnum]")
    private String type;

    @ApiModelProperty("始发站")
    private String start;

    @ApiModelProperty("始发站拼音")
    private String startPinyin;

    @ApiModelProperty("出发时间")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Time startTime;

    @ApiModelProperty("终点站")
    private String end;

    @ApiModelProperty("终点站拼音")
    private String endPinyin;

    @ApiModelProperty("到站时间")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Time endTime;

    @ApiModelProperty("新增时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
